package com.jnzc.ocr.serv.shop.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "店铺订单")
public class ShopOrder {

	@ApiModelProperty(value = "ID")
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "店铺ID")
	private Long shopId;
	@ApiModelProperty(value = "编号")
	private String no;
	@ApiModelProperty(value = "订单")
	private String name;
	@ApiModelProperty(value = "会员ID")
	private Long memberId;
	@ApiModelProperty(value = "会员名称")
	private String memberName;
	@ApiModelProperty(value = "类型(1: 充值, 2: 销售)")
	private Integer type;
	@ApiModelProperty(value = "用户ID")
	private Long userId;
	@ApiModelProperty(value = "用户名称")
	private String userName;
	@ApiModelProperty(value = "金额")
	private BigDecimal amount;
	@ApiModelProperty(value = "赠送积分")
	private Integer addPoint;
	@ApiModelProperty(value = "数量")
	private Integer num;
	@ApiModelProperty(value = "状态(1: 待付款, 98: 关闭, 99: 完成)")
	private Integer state;
	@ApiModelProperty(value = "支付方式(1: 现金, 2: 微信, 3: 支付宝, 4: 余额)")
	private Integer payType;
	@ApiModelProperty(value = "付款时间")
	private Date payTime;
	@ApiModelProperty(value = "完成时间")
	private Date finishTime;
	@ApiModelProperty(value = "是否退款")
	private Boolean ifRefund;
	@ApiModelProperty(value = "退货数量")
	private Integer refundNum;
	@ApiModelProperty(value = "退款时间")
	private Date refundTime;
	@ApiModelProperty(value = "创建时间")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getAddPoint() {
		return addPoint;
	}

	public void setAddPoint(Integer addPoint) {
		this.addPoint = addPoint;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Date getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

	public Boolean getIfRefund() {
		return ifRefund;
	}

	public void setIfRefund(Boolean ifRefund) {
		this.ifRefund = ifRefund;
	}

	public Date getRefundTime() {
		return refundTime;
	}

	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getRefundNum() {
		return refundNum;
	}

	public void setRefundNum(Integer refundNum) {
		this.refundNum = refundNum;
	}
}
